package com.pf.mapper.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pf.annotation.EnableFieldCipher;
import com.pf.annotation.FieldDecrypt;
import lombok.Data;

@EnableFieldCipher
@Data
@TableName(value = "user_cipher_table")
public class User extends BaseEntity {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private String name;
    private String mobile;
    @FieldDecrypt(encryptFieldName = "mobile")
    private String mobileCipher;
    private String idCard;
    @FieldDecrypt(encryptFieldName = "idCard")
    private String idCardCipher;
}
